<!-- sua bai viet-->
<?php echo validation_errors(); ?>

<form method="POST" action="<?php echo base_url().'admin/xuly/setting/list/'.$this->uri->segment(5);?>">
<div class="box_heading">
    <div class="icon">
    <img src="<?php echo base_url().'skin/admin/images/icon_settings.png';?>"/> Sửa Tin tức ( <span style="color: red;"> * : không được để trống</span> )  <?php if(!empty($thongbao)){echo '<img src='.base_url().'skin/admin/images/ok.png class="ok"><font color=red><b>'.$thongbao.'</b></font>';}?>
    </div>
    <div class="right">    
    <a href="<?php echo base_url().'admin/xuly/setting';?>">Hủy</a>
    </div>
</div>

<div class="box_noidung">
<table class="form">
<tr><td><font color=red>* </font>Tiêu đề</td><td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->title;};?>" name="title"/></td></tr>
<tr><td>Địa chỉ website</td><td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->url;};?>" name="url"/></td></tr>
<tr><td>Chủ quản</td><td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->master;};?>" name="master"/></td></tr>
<tr><td>Địa chỉ</td><td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->address;};?>" name="address"/></td></tr>
<tr><td>Email</td><td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->email;};?>" name="email"/></td></tr>
<tr><td>Điện thoại</td><td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->phone;};?>" name="phone"/></td></tr>
<tr><td>Fax</td><td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->fax;};?>" name="fax"/></td></tr>
<tr><td>Yahoo</td><td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->yahoo;};?>" name="yahoo"/></td></tr>
<tr><td>Yahoo</td><td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->yahoo1;};?>" name="yahoo1"/></td></tr>
<tr><td></font>Meta Description</td><td><textarea rows="2" cols="40" name="metades"><?php if(!empty($data)){echo $data->metades;};?></textarea></td></tr>
<tr><td></font>Meta Keywords</td><td><textarea rows="2" cols="40" name="metakey"><?php if(!empty($data)){echo $data->metakey;};?></textarea></td></tr>
<tr><td></font>Google analytics</td><td><textarea rows="2" cols="40" name="google"><?php if(!empty($data)){echo $data->google;};?></textarea></td></tr>
<tr><td>Logo</td><td>
<input type="text" id="xFilePath" name="logo"  size="53" class="medium" value="<?php if(!empty($data)){echo $data->logo;} ?>" />
<input type="button" value="Tải ảnh lên" onclick="BrowseServer();" style="background-color: #E5E3E3;background-image: url("../../resources/images/button.png");" />
</td></tr>
<tr><td><font color=red>* </font>Nội dung Cuối trang</td><td><textarea rows="5" cols="40" name="footer" id="soanthao"><?php if(!empty($data)){echo $data->footer;};?></textarea></td></tr>
<tr><td style="text-align: center;" colspan="2"><input class="guidulieu" type="submit" value="Lưu"/></td></tr>
</table>
</div>
</form>
    <script type="text/javascript">
           if ( typeof CKEDITOR == 'undefined' )
            {
            	document.write("khong "
            		 ) ;
            }
            else
            {
            	var editor = CKEDITOR.replace( 'soanthao' );   
                var editor2 = CKEDITOR.replace( 'soanthao2' );         
                CKFinder.setupCKEditor( editor, '<?php echo base_url();?>ckeditor/ckfinder/' ) ;  
                CKFinder.setupCKEditor( editor2, '<?php echo base_url();?>ckeditor/ckfinder/' ) ;          	
            }
		</script>


<!--end sua bai viet-->